﻿using System;

class readRadAndPrintArea
{
    static void Main()
    {
        double r = double.Parse(Console.ReadLine());
        double p = Math.PI * 2 * r;
        double s = Math.PI * r * r;
        Console.WriteLine("P = {0}", p);
        Console.WriteLine("S = {0}", s);
    }
}